Ext.define('Admin.view.post.PostEmployeeGridPanel', {
    extend: 'Ext.grid.Panel',
    xtype: 'postEmployeeGridPanel',
    id:'postEmployeeGridPanel',
      
    requires: [
      //'Ext.grid.column.RowNumberer',
      //'Ext.selection.CheckboxModel'
    ],
    title: '员工列表',
    //store: Ext.data.StoreManager.lookup('employeeStore'),
   // bind: '{postEmployeeList}',
     store:'employeeStore',
    //controller: 'postViewController',
   // viewModel: {type: 'postViewModel'},
    columns: [
        //{xtype: 'rownumberer',width: 40, sortable: false},
        
         
         { header: 'ID',  dataIndex: 'empId',hidden:true },
         { header: '真实姓名',  dataIndex: 'empName' },
         { header: '用户名',  dataIndex: 'user.userName' },
         { header: '岗位',  dataIndex: 'post.postName' },
         { header: '所属部门', dataIndex: 'post.part.partName', flex: 1 ,sortable: false}
    ],
    columnLines: true,
    bbar: {
      xtype: 'pagingtoolbar',//注意以后MVVM中使用新写法,不要使用Ext.create()
       // store: Ext.data.StoreManager.lookup('employeeStore'),
       store:'employeeStore',
        //bind: '{postEmployeeList}',
        displayInfo: true,
        displayMsg: 'Displaying topics {0} - {1} of {2}',
        emptyMsg: "No topics to display"
       
    }
  
});